import { View, Image, Button } from '@tarojs/components';
import Taro from '@tarojs/taro';
import { useEffect } from 'react';
import shareIcon from '@/assets/images/miaosha/wechat.png';
import './index.scss';

export default function () {
  const shareWechat = () => {};

  useEffect(() => {
    Taro.showShareMenu({
      withShareTicket: true,
    });
  }, []);

  return (
    <View className="wechat-share" onClick={shareWechat}>
      <Button className="share-btn" openType="share"></Button>
      <Image src={shareIcon} />
    </View>
  );
}
